package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 班级列表分页查询参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClazzQueryParam {
    private String name;    //班级名称
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;    //范围匹配的开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;  //范围匹配的结束时间
    private Integer page = 1; //分页查询的页码
    private Integer pageSize = 10;  //分页查询的每页记录数
}
